package com.hxd.mall.module.usercenter.message

import com.hxd.mall.network.service.IMeFunctionApi
import javax.inject.Inject

/**
 * @author zhaoyong
 * @description:
 * @date :2019/7/17 11:08 AM
 */
class MessagePresenter @Inject constructor(view: IMessageView) : IMessagePresenter {

    private var mView: IMessageView = view
    private var mMainFunctionApi: IMeFunctionApi? = null

    constructor(view: IMessageView, mainFunctionApi: IMeFunctionApi) : this(view) {
        this.mView = view
        this.mMainFunctionApi = mainFunctionApi
    }

    override fun getData(isRefresh: Boolean) {
    }

    override fun getData() {
        /*BaseRequest.request(mMainFunctionApi!!.netUserInfo(), mView, {
            Logger.i("request success")
        }, {
            Logger.i("request fail")
        }, true)*/
    }

    override fun getVersionInfo() {
        /*BaseRequest.request(mMainFunctionApi!!.versionInfo, {
            mView.showData(it)
        }, {
            Logger.i("request fail")
        }, false)*/
    }
}